package com.myLearning.principles.dip;

public class Benz implements ICar {

    @Override
    public void run() {
        System.out.println("Benz car is running");
    }


    private String brand;

    public Benz(String brand) {
        this.brand = brand;
    }

    @Override
    public String getBrand() {
        return this.brand;
    }
}
